Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sshnp gui core MVP #467

Merged
merged 113 commits into from
Sep 15, 2023
Merged

feat: sshnp gui core MVP #467

merged 113 commits into from
Sep 15, 2023

Conversation

XavierChanth
Copy link
Member

@XavierChanth XavierChanth commented Sep 13, 2023

- What I did

  • MVP of the SSH No Ports GUI app (supports forward ssh daemons only)
  • Refactored some of the core code to support the GUI

- How I did it

- How to verify it

- Description for the changelog
feat: sshnp gui core MVP

CurtlyCritchlow and others added 30 commits September 4, 2023 12:25
…ackend methods and show appropriate properties on the respective screens
@@ -21,22 +21,18 @@ Future<AtClient> createAtClientCli({
pathBase += '$pathExtension${Platform.pathSeparator}';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed how paths are normalized in this file

@@ -3,6 +3,7 @@ import 'dart:io';
import 'package:at_chops/at_chops.dart';
import 'package:at_client/at_client.dart';
import 'package:at_utils/at_utils.dart';
import 'package:path/path.dart' as path;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file normalization in this file too

@@ -195,3 +214,47 @@ class SSHNPArg {
return 'SSHNPArg{format: $format, name: $name, abbr: $abbr, help: $help, mandatory: $mandatory, defaultsTo: $defaultsTo, type: $type}';
}
}

ArgParser createArgParser({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this from SSHNPParams so that SSHNPParams would be more focused in intention

aliases: ['ls'],
negatable: false,
help: 'List available devices',
commandLineOnly: true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were injected with an if, now using commandLineOnly: true to be injected to the command line

@@ -198,7 +198,16 @@ class SSHNPImpl implements SSHNP {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path normalization, and catching errors in this file

_doneCompleter.complete();
break;
case SupportedSshClient.pureDart:
(success, errorMessage) = await directSshViaSSHClient();
(success, errorMessage, client) = await directSshViaSSHClient();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passing through client and process so they can be added to the SSHNPResult

@@ -6,34 +6,35 @@ class SSHNPParams {
/// Since there are multiple sources for these values, we cannot validate
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove late calls, reorder functions

@@ -2,12 +2,14 @@ part of 'sshnp.dart';

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the SSHNPResult covariants to be compatible with the GUI

@@ -17,17 +17,12 @@ Future<void> cleanUpAfterReverseSsh(SSHNP sshnp) async {
if (homeDirectory == null) {
return;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normalize paths

@XavierChanth XavierChanth changed the title feat(WORK IN PROGRESS): sshnp gui core MVP feat: sshnp gui core MVP Sep 14, 2023
@XavierChanth XavierChanth requested review from gkc and cpswan September 14, 2023 16:21
@XavierChanth XavierChanth marked this pull request as ready for review September 14, 2023 16:21
@gkc gkc merged commit 61bc2eb into trunk Sep 15, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants